import request from '@/utils/request'

// 查询工业视频配置列表
export function listSysVideoData(query) {
  return request({
    url: '/video/sysVideoData/list',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

// 查询工业视频配置详细
export function getSysVideoData(id) {
  return request({
    url: '/video/sysVideoData/' + id,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 新增工业视频配置
export function addSysVideoData(data) {
  return request({
    url: '/video/sysVideoData',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

// 修改工业视频配置
export function updateSysVideoData(data) {
  return request({
    url: '/video/sysVideoData',
    headers: {
      isToken: false
    },
    method: 'put',
    data: data
  })
}

// 删除工业视频配置
export function delSysVideoData(id) {
  return request({
    url: '/video/sysVideoData/' + id,
    headers: {
      isToken: false
    },
    method: 'delete'
  })
}

export function listVideo(data) {
  return request({
    url: '/video/data/getList',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
export function list(query) {
  return request({
    url: '/video/data/getRemarkVideoList',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function listurl(query) {
  return request({
    url: '/video/data/getRemarkVideoUrl',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}
